package exercise2;
import java.util.Date;
import java.util.Scanner;
public class Exercise02_08 {
    public static void main(String []args)
    {
        System.out.println("Enter the time zone offset to GMT: ");
        Scanner input=new Scanner(System.in);
        long timeZoneOffset = input.nextInt();

        long total_s=System.currentTimeMillis()/1000;

        long s=total_s%60;
        long total_m=total_s/60;
        long m=total_m%60;
        long total_h=total_m/60;
        long h=(total_h+timeZoneOffset)%24;

        System.out.println("Current time is " + h + ":"
                + m + ":" + s);
    }
}
